#include <iostream>
#include <string>
using namespace std;
class Box
{
private:
	float length;
	float width;
	float height;

public:
	void get_value();
	float volume();
	void display();
};

void Box::get_value()
{
	cout << "please input lengh,width,height: ";
	cin >> length >> width >> height;
}

float Box::volume()
{
	return length * width * height;
}

void Box::display()
{
	cout << volume() << endl;
}

int main()
{
	Box box1, box2, box3;
	box1.get_value();
	cout << "volume of baxl is: ";
	box1.display();

	box2.get_value();
	cout << "volume of bax2 is: ";
	box2.display();

	box3.get_value();
	cout << "volume of bax3 is: ";
	box3.display();

	return 0;
}
